/// title : "如何搭建和运营自己的知识店铺"
/// imgUrl : "https://default-1252057090.cos.ap-shanghai.myqcloud.com/f820bb66-83a1-4b71-8661-8b9aedd40e2c.png?imageMogr2/auto-orient/thumbnail/3364x1892/quality/50/cut/3364x1892x0x0"
/// productId : "1429680903759626241"
/// productType : "column"
/// resourceCnt : 7
/// progress : 0

class Product {
  Product({
      String? title, 
      String? imgUrl, 
      String? productId, 
      String? productType, 
      int? resourceCnt, 
      int? progress,}){
    _title = title;
    _imgUrl = imgUrl;
    _productId = productId;
    _productType = productType;
    _resourceCnt = resourceCnt;
    _progress = progress;
}

  Product.fromJson(dynamic json) {
    _title = json['title'];
    _imgUrl = json['imgUrl'];
    _productId = json['productId'];
    _productType = json['productType'];
    _resourceCnt = json['resourceCnt'];
    _progress = json['progress'];
  }
  String? _title;
  String? _imgUrl;
  String? _productId;
  String? _productType;
  int? _resourceCnt;
  int? _progress;

  String? get title => _title;
  String? get imgUrl => _imgUrl;
  String? get productId => _productId;
  String? get productType => _productType;
  int? get resourceCnt => _resourceCnt;
  int? get progress => _progress;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['title'] = _title;
    map['imgUrl'] = _imgUrl;
    map['productId'] = _productId;
    map['productType'] = _productType;
    map['resourceCnt'] = _resourceCnt;
    map['progress'] = _progress;
    return map;
  }

}